#pragma once
#include "IPrimitive.h"
#include "Traingle.h"
class Quad:public IPrimitive
{
public:
	Quad(Point& pos = Point(0,0),float w = 0,float h = 0);
	Quad(Point& tl,Point& tr,Point& br,Point& bl);
	~Quad(void);
	virtual void draw(IPixelDrawer* dr);
	void mulMat(Mat4& mat);
	void setTexture(Texture* texture,Vec3& uvPos=Vec3(0,0,0),float uvW = 1.0,float uvH = 1.0);
	virtual void setShowBorder(bool b) ;
	Traingle t[2];
};

